<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改商家提现')" />
	<th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-storeRealmoney-edit" th:object="${storeRealmoney}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<h4 class="form-header h4">提现信息</h4> 
            <div class="form-group">	
				<label class="col-sm-2 control-label">提现方式：</label>
				<div class="col-sm-3">
					<input id="outWay" name="outWay" th:field="*{outWay}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">账户姓名：</label>
				<div class="col-sm-3">
					<input id="accountName" name="accountName" th:field="*{accountName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">转出账户：</label>
				<div class="col-sm-3">
					<input id="outAccount" name="outAccount" th:field="*{outAccount}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">确认账户：</label>
				<div class="col-sm-3">
					<input id="confirmAccount" name="confirmAccount" th:field="*{confirmAccount}" class="form-control" type="text">
				</div>
			</div>
			
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">提现金额：</label>
				<div class="col-sm-3">
					<input id="money" name="money" th:field="*{money}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">当前余额：</label>
				<div class="col-sm-3">
					<input id="account" name="account" th:field="*{account}" class="form-control" type="text">
				</div>
			</div>
			
			<div class="form-group">	
				<label class="col-sm-2 control-label">提现状态：</label>
				<div class="col-sm-3">
					<select id="state" name="state" class="form-control m-b"
						th:field="*{state}">
						<option value=0>待审核</option>
						<option value=1>同意提现</option>
						<option value=-1>不同意提现</option>						
					</select>
				</div>

				<label class="col-sm-2 control-label">实际转账金额：</label>
				<div class="col-sm-3">
					<input id="moneyTrue" name="moneyTrue"  class="form-control" type="text">
				</div>
			</div>
			
			
			
			
			
			 <h4 class="form-header h4">其他信息</h4> 
			 <div class="form-group">	
				<label class="col-sm-2 control-label">申请时间：</label>
				<div class="col-sm-3">
					<input id="createDate" name="createDate" th:field="*{createDate}" class="form-control" type="text">
				</div>
				
				<label class="col-sm-2 control-label">审核时间：</label>
				<div class="col-sm-3">
					<input id="verifyDate" name="verifyDate" th:field="*{verifyDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">申请商家ID：</label>
				<div class="col-sm-3">
					<input id="storeId" name="storeId" th:field="*{storeId}" class="form-control" type="text">
				</div>
				
				
				<label class="col-sm-2 control-label">申请商家名称：</label>
				<div class="col-sm-3">
					<input id="storeName" name="storeName" th:field="*{storeName}" class="form-control" type="text">
				</div>
			</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
	<th:block th:include="include :: select2-js" />
    <script type="text/javascript">
		var prefix = ctx + "StoreRealMoney/storeRealmoney";
		$("#form-storeRealmoney-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-storeRealmoney-edit').serialize());
	        }
	    }

		var money = $("input[name='money']").val();
		var maoneyTrue=0.95*money;
		$("#moneyTrue").val(maoneyTrue)
	</script>
</body>
</html>
